package pikes.uri;

import java.io.StringWriter;

import org.junit.Assert;
import org.junit.Test;

public class WebLinkTestCase {

	@Test
	public void createAndPrint() throws Exception {
		WebLink webLink = new WebLink("www.w3.org");
		StringWriter writer = new StringWriter();
		webLink.print(writer);
		Assert.assertEquals("http://www.w3.org", writer.toString());

	}
}
